﻿using CampWeek5__Book_Project_.Data.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace CampWeek5__Book_Project_.Models
{
    public class BookVM
    {
        public int Id { get; set; }
        public int ISBN { get; set; }
        public string Title { get; set; }
        [Display(Name = "First Publication Date")]
        public DateTime PubDate { get; set; }
        public string Summary { get; set; }
        [Display(Name = "url for book image")]
        public string BookImg { get; set; }
        public int TimesViewed { get; set; }
        public DateTime? DateDeleted { get; set; }

        public int AuthorId { get; set; }
        public string AuthorName { get; set; }

        public List<string> Tags { get; set; }

        public List<RatingVM> Ratings { get; set; }
    }
}